package com.antu.first.dto;

import com.antu.first.bean.Reply;
import com.antu.first.enums.ReplyStateEnum;

import java.util.List;

/**
 * 回复DTO
 * Created by 姚江 on 2018/3/6.
 */
public class ReplyOperationExecution {

    private int state;

    private String stateInfo;

    private Reply reply;

    private List<Reply> replies;

    private int count;

    public ReplyOperationExecution(ReplyStateEnum stateEnum) {
        this.state = stateEnum.getState();
        this.stateInfo = stateEnum.getStateInfo();
    }

    public ReplyOperationExecution(ReplyStateEnum stateEnum, Reply reply) {
        this.state = stateEnum.getState();
        this.stateInfo = stateEnum.getStateInfo();
        this.reply = reply;
    }

    public ReplyOperationExecution(ReplyStateEnum stateEnum, List<Reply> replies) {
        this.state = stateEnum.getState();
        this.stateInfo = stateEnum.getStateInfo();
        this.replies = replies;
    }

    public int getState() {

        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getStateInfo() {
        return stateInfo;
    }

    public void setStateInfo(String stateInfo) {
        this.stateInfo = stateInfo;
    }

    public Reply getReply() {
        return reply;
    }

    public void setReply(Reply reply) {
        this.reply = reply;
    }

    public List<Reply> getReplies() {
        return replies;
    }

    public void setReplies(List<Reply> replies) {
        this.replies = replies;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }
}
